package com.dzh.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

@Controller

public class hellocontroller {
//    @RequestMapping("/detail")
//    public String hello(Model model){
//        return "bancixinxi_detail";
//    }


    @RequestMapping("/tianjia")
    public String hello1(Model model){
        return "bancixinxi_add";
    }

//    @RequestMapping("/hello2")
//    public String hello2(Model model){
//        return "submit";
//    }

//    @RequestMapping("/list")
//    public String hello3(Model model, HttpServletResponse response)  {
////        PrintWriter out=response.getWriter();
////        out.print("<script>alert('购票成功');</script>");
////        out.flush();
//        return "bancixinxi_list_guke";
//    }
    @RequestMapping("/xiugai")
    public String hello4(Model model){
        return "bancixinxi_update";
    }
    @RequestMapping("/adminlist")
    public String hello5(Model model){
        return "bancixinxi_list_admin";
    }
//    @RequestMapping("/admin")
//    public String hello6(Model model){
//        return "admin";
//    }
//    @RequestMapping("/guke")
//    public String hello7(Model model){
//        return "bancixinxi_list_gukeguanli";
//    }

//    @RequestMapping("/login")
//    public String hello8(Model model){
//        return "login";
//    }

//    @RequestMapping("/gaimima")
//    public String hello9(Model model){
//        return "updatemm";
//    }

//    @RequestMapping("/zhuce")
//    public String hello10(Model model){
//        return "register";
//    }

    @RequestMapping("/index")
    public String hello11(Model model){
        return "index";
    }
}